import React, { Component } from 'react'

function ChildCpn(props) {
  const {name, age} = props

  return (
    <h2>Subcomponents present data: {name + age}</h2>
  )
}

export default class App extends Component {
  render() {
    return (
      <div>
        <ChildCpn name="王总" age="20" />
        <ChildCpn name="王总" age="20" />
      </div>
    )
  }
}